package biz.microplus.information.bean;

import biz.microplus.information.common.DateUtil;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 账户扩展资料数据模型
 */
@Entity
public class PeopleBean extends BaseBean {

    public static final String GENDER_NONE = "2";
    public static final String GENDER_FEMALE = "0";
    public static final String GENDER_MALE = "1";

    public PeopleBean(){}

    public PeopleBean(int parentId, String cellphone){
        this.parentId = parentId;
        this.cellphone = cellphone;
        this.createdAt = DateUtil.getNowTimestamp();
    }

    public PeopleBean(int parentId, String nickname, String cellphone, String email, String avatar, String gender){
        this.parentId = parentId;
        this.nickname = nickname;
        this.cellphone = cellphone;
        this.email = email;
        this.avatar = avatar;
        this.gender = gender;
        this.createdAt = DateUtil.getNowTimestamp();
    }

    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 账户ID
     */
    private int parentId;
    /**
     * 操作人ID
     */
    private int userId;
    /**
     * 生日时间戳
     */
    private int birthday;
    /**
     * 姓名
     */
    private String name;
    /**
     * 身份证号
     */
    private String identity;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 手机号
     */
    private String cellphone;
    /**
     * 邮箱地址
     */
    private String email;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 性别
     */
    private String gender;
    /**
     * 状态
     */
    private String status;
    /**
     * 简介
     */
    private String introduction;
    /**
     * 国家ID
     */
    private int countryId;
    /**
     * 省份ID
     */
    private int provinceId;
    /**
     * 城市ID
     */
    private int cityId;
    /**
     * 区县ID
     */
    private int countyId;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;
    /**
     * 删除时间戳
     */
    private int deletedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getBirthday() {
        return birthday;
    }

    public void setBirthday(int birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public int getCountryId() {
        return countryId;
    }

    public void setCountryId(int countryId) {
        this.countryId = countryId;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public int getCountyId() {
        return countyId;
    }

    public void setCountyId(int countyId) {
        this.countyId = countyId;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }

    public int getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(int deletedAt) {
        this.deletedAt = deletedAt;
    }
}